<template>
  <fieldset>
    <legend>父组件</legend>
    <h1>{{ msg }}</h1>
    <Child :val="v" @look="lok"></Child>
    <Bro></Bro>
  </fieldset>
</template>
<script>
import Child from "./Child";
import Bro from "./Bro";
export default {
  data() {
    return {
      msg: "请你让一下，不然我揍你",
      v: "哈哈哈哈，我来了",
    };
  },
  methods: {
    lok(input) {
      console.log(input);
      this.msg = input;
    },
  },
  components: {
    Child,
    Bro,
  },
};
</script>
